//package com.pro.common.modules.service.dependencies.util;
//
//import com.pro.common.modules.service.dependencies.config.component.ThirdExceptionDispatcher;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.stereotype.Component;
//
//import java.util.function.Supplier;
//
//@Component
//public class ThirdExecutor {
//
//    @Autowired
//    private ThirdExceptionDispatcher dispatcher;
//
//    public <T> T execute(String platform, Supplier<T> supplier) {
//        try {
//            return supplier.get();
//        } catch (Exception e) {
//            throw dispatcher.dispatch(platform, e);
//        }
//    }
//}
